package cn.wangxl.loglog.constants;

import java.util.Objects;

/**
 * @Deacription TODO
 * @Author 20112128
 * @Date 2020/5/1 1:43
 **/
public class RocketmqNameUtil {

    /**
     * 查询RocketmqTopic Name
     * 使用应用名称作为topic name
     * @param application
     * @return
     */
    public static String getRocketmqTopicName(Application application){
        Objects.requireNonNull(application);
        return application.appName;
    }

}
